package com.feemanage.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.common.api.BusinessApi;
import com.common.core.page.PageDomain;
import com.feemanage.domain.BizProjectOutboundMain;
import com.feemanage.domain.vo.BizProjectOutboundMainVo;
import com.feemanage.domain.vo.ProjectOutboundMainVO;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.HashMap;
import java.util.List;

public interface IBizProjectOutboundMainService extends BusinessApi {

    /**
     * 检索列表
     * @param pageDomain
     * @param main
     * @return
     */
    IPage<BizProjectOutboundMainVo> selectList(PageDomain pageDomain, BizProjectOutboundMain main);

    /**
     * 获取列表信息
     * @param projectId
     * @return
     */
    ProjectOutboundMainVO getProOutFeeInfo(String projectId);

    /**
     * 编辑页面数据
     * @param Id
     * @return
     */
    ProjectOutboundMainVO getEditOutFeeInfo(String Id);

    /**
     * 新增
     * @param mainVO
     * @return
     */
    String addProOutFee(ProjectOutboundMainVO mainVO);

    /**
     * 编辑
     * @param mainVO
     * @return
     */
    String editProOutFee(ProjectOutboundMainVO mainVO);

    /**
     * 删除
     * @param ids
     * @param isValid
     * @return
     */
    Boolean delProOutFee(Collection<String> ids, Boolean isValid);

    /**
     * 检索表头统计
     * @param main
     * @return
     */
    List<HashMap<String, Integer>> selectListTotal(BizProjectOutboundMain main);
}
